export default [{
    path: '/',
    component: () =>
        import ('@/views/layout.vue'),
    children: [{
            path: '/table',
            id: '1',
            name: '表',
            component: () =>
                import ('@/views/table/index.vue'),
            meta: {
                roles: ['user', 'admin'],
                icon: 'el-icon-info'
            },
            children: [{
                path: '/table1',
                id: '1-1',
                name: '表1',
                component: () =>
                    import ('@/views/table/table1.vue'),
                meta: {
                    roles: ['admin'],
                    icon: 'el-icon-info'
                }
            }, {
                path: '/table2',
                id: '1-2',
                name: '表2',
                component: () =>
                    import ('@/views/table/table2.vue'),
                meta: {
                    roles: ['user', 'admin'],
                    icon: 'el-icon-info'
                }
            }]
        },
        {
            path: '/tree',
            id: '2',
            name: '树',
            component: () =>
                import ('@/views/tree/index.vue'),
            meta: {
                roles: ['user', 'admin'],
                icon: 'el-icon-info'
            },

        },
    ],
}]